﻿using System;

using Moe.ECamel.Common.Entities;
using Moe.ECamel.Client.WinForms.Common;

namespace Moe.ECamel.Client.WinForms.Forms
{
	public partial class CustomerForm : ECamelForm
	{
		public CustomerForm()
		{
			InitializeComponent();
		}
		public CustomerForm(Customer customer)
			: this()
		{
			this.Text = "פרטי לקוח - " + customer.Username;
			this.CustomerControl.Initialize(customer);			
		}

		private void CancellationButton_Click(object sender, EventArgs e)
		{
			this.Close();
		}
	}
}